Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quadtrees shapes #6681

Merged
merged 2 commits into from
Jul 16, 2024
Merged

Quadtrees shapes #6681

merged 2 commits into from
Jul 16, 2024

Conversation

Doubleumc
Copy link
Contributor

@Doubleumc Doubleumc commented Jul 11, 2024

About the pull request

Additional shapes available for testing against quadtrees or elsewhere: square, ellipse, circle. Square is a simplified version of the rectangle, circle is a simplified version of the ellipse.
Cleaned up existing code for shapes (rectangles), should be better documented and easier to read.
Where possible converted existing RECT usage to SQUARE (everything was squares anyway).
Where possible loosened defined types to the base /datum/shape so shape types can be swapped as desired.

Explain why it's good for the game

Should (currently) have no effect on the game, but paves the way for more interesting uses for quadtrees. Circular areas of effect, for instance.

Testing Photographs and Procedure

Boots. Sentries, flamer sentries, bell towers, flags, sentry laptop, motion detector, and egg morpher all appear to work as intended.

Changelog

No player facing changes.

@Doubleumc Doubleumc requested a review from fira as a code owner July 11, 2024 05:31
@github-actions github-actions bot added the Missing Changelog Maintainers always document their changes. label Jul 11, 2024
square now a subtype of rect, circle now a subtype of ellipse
@Zonespace27 Zonespace27 added this pull request to the merge queue Jul 16, 2024
Merged via the queue into cmss13-devs:master with commit 6a7fc16 Jul 16, 2024
27 checks passed
@Doubleumc Doubleumc deleted the quadtree-shapes branch July 16, 2024 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Missing Changelog Maintainers always document their changes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants